package com.yz.house.func;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 *
 * @author zhangyf
 * @date 2017/8/24
 */

public class ListDecoration extends RecyclerView.ItemDecoration {

    private int space;

    public ListDecoration(int space) {
        this.space = space;
    }

    /**
     * @param outRect
     * @param view
     * @param parent
     * @param state
     */
    @Override
    public void getItemOffsets(Rect outRect, View view,
                               RecyclerView parent, RecyclerView.State state) {

        outRect.right = space;

    }

}
